﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.Master" AutoEventWireup="true"
    CodeBehind="KeyWords.aspx.cs" Inherits="TransFormer.Web.admin.KeyWords" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function Text_ClientValidate(source, arguments) {
            if ((arguments.Value).length < 56)
                arguments.IsValid = true;
            else
                arguments.IsValid = false;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table>
        <tr>
            <td>
                页面名称：
            </td>
            <td>
               <%-- <select runat="server" id="PageNameSelect">
                    <option value="Index">首页</option>
                    <option value="About">关于我们</option>
                    <option value="Product">产品</option>
                    <option value="Support">技术支持</option>
                    <option value="Contact">联系我们</option>
                    <option value="Service">服务</option>
                </select>--%>
                <asp:DropDownList ID="PageNameDDL" runat="server" 
                    OnSelectedIndexChanged="PageNameChanged" AutoPostBack="True">
                    <asp:ListItem value="Index">首页</asp:ListItem>
                    <asp:ListItem value="About">关于我们</asp:ListItem>
                    <asp:ListItem value="Product">产品</asp:ListItem>
                    <asp:ListItem value="Support">技术支持</asp:ListItem>
                    <asp:ListItem value="Contact">联系我们</asp:ListItem>
                    <asp:ListItem value="Service">服务</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                页面标题：
            </td>
            <td>
                <asp:TextBox ID="PageTitle" runat="server" Width="300"></asp:TextBox>
            </td>
            <td>
                <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="Text_ClientValidate"
                    ControlToValidate="PageTitle" ErrorMessage="标题内容的长度应限制在28个中文字符（56个英文字符）以内！"></asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td>
                关键词：
            </td>
            <td>
                <asp:TextBox ID="txtKeyWords" runat="server" TextMode="MultiLine" Width="300" Height="200"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                页面描述：
            </td>
            <td>
                <asp:TextBox ID="txtDesc" runat="server" TextMode="MultiLine" Width="300" Height="200"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button ID="btnOK" runat="server" Text="确定" OnClick="btnOK_Click" />
                <asp:Button ID="btnCancle" runat="server" Text="取消" />
            </td>
        </tr>
    </table>
</asp:Content>
